﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

/// <summary>
/// Summary description for Extenders
/// </summary>
public static class Extenders
{
    public static string ToMySqlFormat(this DateTime obj)
    {
        return obj.Year.ToString() + "-" +
            obj.Month.ToString() + "-" +
            obj.Day.ToString() + "- " +
            obj.Hour.ToString() + "-" +
            obj.Minute.ToString() + "-" +
            obj.Second.ToString();
    }
}
